#include <iostream>
#include <vector>

using namespace std;

class Solution {
public:
    // 两数之和
    vector<int> twoSum(vector<int>& nums, int target) 
    {
        //你的代码写在这里
        // 暴力解法
        for (int i = 0; i < nums.size(); i++)
        {
            for (int j = i + 1; j < nums.size(); j++)
            {
                if (nums[i] + nums[j] == target)
                {
                    return {i, j};
                }
            }
        }
        return {};
    }
};
